const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  assetsDir: 'static',
  parallel: false,
  // 默认
  // publicPath: '/',
  // 打包时使用
  publicPath: './',
  devServer: {
    proxy: {
      '/dev-api': {
        target: 'http://localhost:8888', // Your backend URL (adjust if different)
        changeOrigin: true, // Changes the origin of the request to match the target
        pathRewrite: { '^/dev-api': '/api' }, // Preserve the /dev-api prefix
      },
    },
  },
})
